import requests
def get_token():
    resp = requests.post("http://ihrm-test.itheima.net/api/sys/login",
            json= {"mobile": "13800000002","password": "123456"})
    token = resp.json().get("data")
    return token
if __name__ == '__main__':
    print(get_token())